Rails.application.routes.draw do

  resources :jobnumbers
  resources :subcategories
  resources :categories
  root 'static_pages#home'
  get 'admin', to: 'static_pages#admin'
  get  '/show2', to: 'users#show2'
  get  '/show3', to: 'users#show3'
  get  '/signup', to: 'users#new'
  post '/signup', to: 'users#create'  
  get    '/login',   to: 'sessions#new'
  post   '/login',   to: 'sessions#create'
  delete '/logout',  to: 'sessions#destroy'
  get   '/task_new', to: 'microposts#new'
  post  '/task_new', to: 'microposts#create'
  


  resources :microposts
  resources :users
end
